Matthias Clasen [Tue, 26 Jul 2016 19:45:39 +0000 (15:45 -0400)]
Port GtkPrintOperationPortal to gtk_window_export_handle
Matthias Clasen [Tue, 26 Jul 2016 19:44:49 +0000 (15:44 -0400)]
Port gtk_show_uri_on_window to gtk_window_export_handle
As part of this, make it use the new
g_app_info_launch_default_for_uri_async, since we need a way
to unexport the window handle afterwards.
Matthias Clasen [Tue, 26 Jul 2016 19:48:18 +0000 (15:48 -0400)]
Port GtkFileChooserNativePortal to gtk_window_export_handle
Matthias Clasen [Tue, 26 Jul 2016 19:46:41 +0000 (15:46 -0400)]
Put window exporting behind a display protocol agnostic API
Introduce a private API meant for abstracting how to get a handle
of a window that can be shared with other processes. The API is
async, since some implementations will require that. Currently,
only X11 is supported, which doesn't.
Based on a patch by Jonas Adahl.
Руслан Ижбулатов [Sun, 24 Jul 2016 14:26:06 +0000 (14:26 +0000)]
GDK W32: Support UTF-16 surrogate pairs passed via VK_PACKET
This is, essentially, a piece of g_utf16_to_ucs4() built into GDK
W32 keyboard message processing.
https://bugzilla.gnome.org/show_bug.cgi?id=769126
Benjamin Otte [Thu, 28 Jul 2016 15:41:21 +0000 (11:41 -0400)]
css: Fix case where we didn't convert pt => px
Fixes gtk_widget_override_font() not behaving properly since commit
df08fc91bdc1d2e4c866122304fabe4dd298a7de.
https://bugzilla.gnome.org/show_bug.cgi?id=768902
Benjamin Otte [Thu, 28 Jul 2016 15:31:30 +0000 (11:31 -0400)]
css: Rename functions
I don't want to use a generic function for font sizes as font sizes are
special. Plus, the function is only used in one place.
Emilio Pozuelo Monfort [Thu, 28 Jul 2016 15:13:15 +0000 (17:13 +0200)]
Properly declare the font CSS property
https://bugzilla.gnome.org/show_bug.cgi?id=769004
Emilio Pozuelo Monfort [Thu, 28 Jul 2016 15:12:25 +0000 (17:12 +0200)]
Don't use one-stop gradients
They are deprecated, which causes a warning that makes
the test fail.
https://bugzilla.gnome.org/show_bug.cgi?id=769004
Murray Cumming [Thu, 28 Jul 2016 09:12:54 +0000 (11:12 +0200)]
Fix tiny typo.
Lapo Calamandrei [Wed, 27 Jul 2016 20:54:20 +0000 (22:54 +0200)]
Adwaita: use a transition to animate checks and radios
see https://bugzilla.gnome.org/show_bug.cgi?id=762260
Georges Basile Stavracas Neto [Tue, 26 Jul 2016 20:12:31 +0000 (17:12 -0300)]
shortcut-label: add 'disabled-text' property
When there's no useful shortcut accelerator set,
GtkShortcutLabel doesn't show any useful information.
To work around that, add a new property to set the
text to be displayed when there's no accelerator
available.
https://bugzilla.gnome.org/show_bug.cgi?id=769205
Georges Basile Stavracas Neto [Tue, 26 Jul 2016 19:00:47 +0000 (16:00 -0300)]
shortcut-label: make it public
GtkShortcutLabel is a widget that displays a single
shortcut accelerator or gesture in the user interface,
and is currently used by the shortcuts window.
This widget, however, has public value as other applications
also may want to expose their own shortcuts. For instance,
it'll be useful for the Keyboard panel on Control Center and
the new shortcut editor in Pitivi, among others.
This patch exposes GtkShortcutLabel as a public widget,
and adds the necessary documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=769205
Carlos Garnacho [Wed, 27 Jul 2016 18:23:35 +0000 (20:23 +0200)]
GtkScrolledWindow: reset scroll history if it contained no real history
Scroll history must refer to a timespan for the values to be valid, otherwise
we return FALSE, in this case the stored event(s) should be discarded anyway.
Carlos Garnacho [Wed, 27 Jul 2016 18:19:30 +0000 (20:19 +0200)]
GtkScrolledWindow: Always uninstall scroll cursor when starting deceleration
It could be the case that the last scroll event is received long after any
previous scroll event, in this case the last scroll event discards all "old"
scroll events, and scroll_history_finish() returns FALSE because there's no
time/offset deltas in the scroll history.
This is desired so we don't trigger the deceleration effect if there was no
effective velocity, we still must reset the installed scroll cursor, so take
it out of this if() condition.
Tiago Santos [Wed, 27 Jul 2016 07:35:14 +0000 (07:35 +0000)]
Updated Portuguese translation
Matthias Clasen [Tue, 26 Jul 2016 11:25:01 +0000 (07:25 -0400)]
Stop using one-stop gradients in reftests
This is causing warnings now that make the tests fail.
Matthias Clasen [Tue, 26 Jul 2016 04:21:48 +0000 (00:21 -0400)]
Revert a mistaken change
I thought I needed ot rearrange the ordering of the animation-direction
values for the parser, overlooking the fact that we already parse them
backwards to address this very problem.
Sébastien Wilmet [Sun, 24 Jul 2016 15:20:29 +0000 (17:20 +0200)]
docs: GtkWidget::style-updated vs GtkStyleContext::changed
Explain the difference between those two signals.
Add "Since: 3.0" for GtkStyleContext::changed, since that signal has
been added in commit
9f84e101bf150a85f82e15c56130b1f98b8fdbf0, present
since 2.91.6.
https://bugzilla.gnome.org/show_bug.cgi?id=769047
Sébastien Wilmet [Sun, 24 Jul 2016 11:16:31 +0000 (13:16 +0200)]
docs: add missing info for gtk_widget_get_style_context()
It is important to know whether the returned object can or cannot
change, for a certain widget. For example to connect to the
GtkStyleContext::changed signal.
https://bugzilla.gnome.org/show_bug.cgi?id=769047
Matthias Clasen [Mon, 25 Jul 2016 13:11:21 +0000 (09:11 -0400)]
GtkApplication: some cleanups
Always return an error if we fail to get a dbus proxy; the callers
are only looking whether error is set, not whether the return value
is NULL.
Use the same function for the inhibit proxy as well, and clean up
the sm_proxy in finalize.
Simon McVittie [Mon, 6 Jun 2016 08:48:36 +0000 (09:48 +0100)]
Don't apply GDK_HINT_RESIZE_INC to GDK_WINDOW_STATE_TILED windows
This matches the behaviour of Mutter, Metacity and traditional X11
window managers on the window manager side, and is what we want
for at least gnome-terminal. I can't think of any reason why we'd
want incremental resize in any other tiled window.
Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=760944
https://bugzilla.gnome.org/show_bug.cgi?id=755947
Cosimo Cecchi [Sat, 16 Jul 2016 18:48:32 +0000 (11:48 -0700)]
reftests: override GSETTINGS_SCHEMA_DIR when running tests
The reftest depends on a schema we install ourselves. Instruct GIO to
look in the build directory to avoid a cyclic dep.
https://bugzilla.gnome.org/show_bug.cgi?id=768930
Matthias Clasen [Mon, 25 Jul 2016 12:32:24 +0000 (08:32 -0400)]
Avoid a division by zero
It appears that xvfb returns nonsense in its xrandr resources.
Avoid a crash when that happens.
https://bugzilla.gnome.org/show_bug.cgi?id=768999
Matthias Clasen [Mon, 25 Jul 2016 12:32:08 +0000 (08:32 -0400)]
Use g_clear_object in a few more places
Lapo Calamandrei [Sun, 24 Jul 2016 17:11:27 +0000 (19:11 +0200)]
Adwaita: use margins for entry image spacing
there used to be a padding, since it was the only option in the
past, that makes little sense now, hence use margins.
Lapo Calamandrei [Sun, 24 Jul 2016 16:58:45 +0000 (18:58 +0200)]
HC: export unfocused_insensitive_color...
...to reflect Adwaita changes.
Lapo Calamandrei [Sun, 24 Jul 2016 16:04:51 +0000 (18:04 +0200)]
Adwaita: export yet another named color for insensitive bg/fg...
...which was needed, but not there, use responsibly.
Timm Bäder [Sat, 23 Jul 2016 12:07:47 +0000 (14:07 +0200)]
Fix a few documentation parameter names
Matthias Clasen [Sat, 23 Jul 2016 03:11:44 +0000 (23:11 -0400)]
Opt in to structured logging
Define G_LOG_USE_STRUCTURED, so that all our g_debug, g_warning,
etc calls directly use structured logging and provide source information.
Carlos Garnacho [Fri, 22 Jul 2016 18:58:55 +0000 (20:58 +0200)]
wayland: Fix build
Missing include pointing to tablet-unstable-v1-client-protocol.h,
pays me for not testing on a clean checkout.
Carlos Garnacho [Fri, 13 May 2016 13:25:25 +0000 (15:25 +0200)]
wayland: Use wl_fixed_t on wp_tablet_tool angle arguments
This is an incompatible change in tablet protocol v2.
Carlos Garnacho [Fri, 13 May 2016 13:19:04 +0000 (15:19 +0200)]
wayland: Update current tablet support to using v2
Only update to using v2 headers/structs. The incompatible changes
to tool events are dealt with in the next commit. Pads aren't handled
in this commit either.
Lapo Calamandrei [Fri, 22 Jul 2016 12:10:56 +0000 (14:10 +0200)]
Adwaita: dim calendar `uninteresting` days some more
see https://bugzilla.gnome.org/show_bug.cgi?id=769003
Lapo Calamandrei [Wed, 20 Jul 2016 20:48:25 +0000 (22:48 +0200)]
Adwaita: clean calendar styling
remove some non working props and generally simplify and clean up
the code, in the process address:
https://bugzilla.gnome.org/show_bug.cgi?id=769003
Daniel Mustieles [Wed, 20 Jul 2016 10:38:39 +0000 (10:38 +0000)]
Updated Spanish translation
Piotr Drąg [Tue, 19 Jul 2016 15:14:30 +0000 (17:14 +0200)]
Updated POTFILES.skip
William Hua [Mon, 4 Jul 2016 19:31:16 +0000 (15:31 -0400)]
mir: implement gdk_window_move_to_rect ()
https://bugzilla.gnome.org/show_bug.cgi?id=756579
William Hua [Tue, 12 Jul 2016 18:08:36 +0000 (14:08 -0400)]
port to new gtk_menu_popup_at_* () functions
https://bugzilla.gnome.org/show_bug.cgi?id=756579
William Hua [Thu, 23 Jun 2016 14:54:22 +0000 (10:54 -0400)]
add demo for testing gtk_menu_popup_at_* ()
https://bugzilla.gnome.org/show_bug.cgi?id=756579
William Hua [Tue, 14 Jun 2016 19:42:13 +0000 (15:42 -0400)]
gtkmenu: add gtk_menu_popup_at_* ()
Adds the following functions:
gtk_menu_popup_at_rect ()
gtk_menu_popup_at_widget ()
gtk_menu_popup_at_pointer ()
https://bugzilla.gnome.org/show_bug.cgi?id=756579
William Hua [Wed, 15 Jun 2016 15:00:38 +0000 (11:00 -0400)]
gdkwindow: add gdk_window_move_to_rect ()
https://bugzilla.gnome.org/show_bug.cgi?id=756579
William Hua [Sat, 16 Jul 2016 00:52:35 +0000 (20:52 -0400)]
gdkwindow: store transient_for window
https://bugzilla.gnome.org/show_bug.cgi?id=756579
William Hua [Thu, 16 Jun 2016 15:20:35 +0000 (11:20 -0400)]
gdkwindow: store shadow sizes
https://bugzilla.gnome.org/show_bug.cgi?id=756579
Daniel Mustieles [Mon, 18 Jul 2016 14:48:16 +0000 (16:48 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 18 Jul 2016 14:48:06 +0000 (16:48 +0200)]
Updated Spanish translation
Руслан Ижбулатов [Mon, 18 Jul 2016 10:32:04 +0000 (10:32 +0000)]
Try to delete any existing W32 status icons when DPI changes
Fixes some or all of the issues reported in
https://github.com/hexchat/hexchat/issues/1423
Matthias Clasen [Mon, 18 Jul 2016 03:27:35 +0000 (23:27 -0400)]
3.21.4
Matthias Clasen [Sun, 17 Jul 2016 18:07:47 +0000 (14:07 -0400)]
Updates
Chao-Hsiung Liao [Sat, 16 Jul 2016 02:46:17 +0000 (02:46 +0000)]
Updated Chinese (Taiwan) translation
Chao-Hsiung Liao [Sat, 16 Jul 2016 02:45:07 +0000 (02:45 +0000)]
Updated Chinese (Taiwan) translation
Piotr Drąg [Thu, 14 Jul 2016 15:06:21 +0000 (17:06 +0200)]
Add Language headers to po files
Future versions of gettext will fail if this header is missing.
Javier Jardón [Wed, 13 Jul 2016 20:15:15 +0000 (21:15 +0100)]
Add LINGUAS file to po-properties
Tiago Santos [Wed, 13 Jul 2016 16:49:10 +0000 (16:49 +0000)]
Updated Portuguese translation
Tiago Santos [Wed, 13 Jul 2016 16:47:18 +0000 (16:47 +0000)]
Updated Portuguese translation
Matthias Clasen [Wed, 13 Jul 2016 15:23:47 +0000 (11:23 -0400)]
link button: Use gtk_show_uri_on_window
This gives slightly better behavior in the sandboxed case and
makes no difference otherwise.
Patrick Griffis [Wed, 13 Jul 2016 05:44:34 +0000 (01:44 -0400)]
GtkFileChooserNativePortal: Use correct response code for accept
As per the documentation of GtkFileChooserNative.
https://bugzilla.gnome.org/show_bug.cgi?id=768756
Chun-wei Fan [Mon, 11 Jul 2016 09:50:13 +0000 (17:50 +0800)]
gtk/gtkfilechoosernativeportal.c: Don't use g_autoptr()
This code is also built by non-GCC/CLang compilers, so use the normal
ref/unref steps for the GVariant.
https://bugzilla.gnome.org/show_bug.cgi?id=768659
Matthias Clasen [Wed, 13 Jul 2016 01:57:46 +0000 (21:57 -0400)]
Remove a few mentions of GtkVBox in the docs
We only have GtkBox nowadays.
Emmanuele Bassi [Tue, 12 Jul 2016 17:09:20 +0000 (18:09 +0100)]
docs: Fix typo.
Emmanuele Bassi [Tue, 12 Jul 2016 11:43:31 +0000 (12:43 +0100)]
docs: Attempt a better explanation for gtk_widget_destroy()
Clarify the nature of this function, and the expectations after it's
been called.
Piotr Drąg [Tue, 12 Jul 2016 11:31:21 +0000 (13:31 +0200)]
placesview: fix spelling of WebDAV in a translatable string
Razvan Chitu [Tue, 12 Jul 2016 09:08:23 +0000 (12:08 +0300)]
placesview: fix open action for locations without a mount or volume
In the "Other Locations" view, locations can be opened from the context menu
based on their mount or volume. However, some locations, like "Computer", do not
have either of those so they cannot be opened from the context menu. In order to
fix this, the file associated with the location can be used as well.
https://bugzilla.gnome.org/show_bug.cgi?id=768657
Emmanuele Bassi [Mon, 11 Jul 2016 15:55:10 +0000 (16:55 +0100)]
docs: Improve gdk_window_create_similar_image_surface()
The sizes passed are in device pixels and do not take into account the
scaling factor of the window itself. We cannot change the semantics of
the function, so let's at least add a warning for this trap door.
Lapo Calamandrei [Fri, 8 Jul 2016 22:56:32 +0000 (00:56 +0200)]
Adwaita: remove old popover checkbutton/radiobutton style
remove some now disfunctional style regarding checkbuttons and
radiobuttons inside popovers which shouldn't be needed anymore.
Lapo Calamandrei [Fri, 8 Jul 2016 20:08:27 +0000 (22:08 +0200)]
Adwaita: remove some check and radio related cruft
remove superfluous padding which was there before the css node
conversion of the widget.
Piotr Drąg [Fri, 8 Jul 2016 19:49:21 +0000 (21:49 +0200)]
Updated POTFILES.in
Matthias Clasen [Fri, 8 Jul 2016 14:26:22 +0000 (10:26 -0400)]
Fix up the documentation of GtkTextView::move-viewport
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=768546
Matthias Clasen [Tue, 5 Jul 2016 05:36:56 +0000 (01:36 -0400)]
Add portal support to GtkPrintOperation
Make GtkPrintOperation talk to org.freedesktop.portal.Print when
running in a sandbox.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Mon, 4 Jul 2016 04:04:38 +0000 (00:04 -0400)]
print job: Add api to send data from an fd
This will be useful for portalized print support.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sun, 3 Jul 2016 00:29:51 +0000 (20:29 -0400)]
page setup: Add api to serialize to a GVariant
This will be useful for portalized print support.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Thu, 7 Jul 2016 01:31:49 +0000 (21:31 -0400)]
Add api to serialize a GtkPaperSize to a GVariant
This will be useful in portalized printing.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sun, 3 Jul 2016 00:29:08 +0000 (20:29 -0400)]
print settings: Add api to serialize to a GVariant
This will be useful for portalized print support.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sat, 2 Jul 2016 01:19:12 +0000 (21:19 -0400)]
Support the Inhibit portal
xdg-desktop-portal now has a portal for inhibiting session status
changes. We don't need to use it if we can talk to the session
manager, but if can't, try org.freedesktop.portal.Inhibit.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Wed, 6 Jul 2016 02:13:22 +0000 (22:13 -0400)]
Implement combobox apis for GtkFileChooserNativePortal
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Wed, 6 Jul 2016 02:11:44 +0000 (22:11 -0400)]
Implement combobox apis in GtkFileChooserWidget
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Wed, 6 Jul 2016 02:09:56 +0000 (22:09 -0400)]
GtkFileChooser: Add abstract api for comboboxes and checkbuttons
This commit adds API for adding combo boxes and check buttons to
GtkFileChooser, and getting the selected value back in ::response.
In contrast to gtk_file_chooser_set_extra_widget, these APIs are
abstract and suitable for implementation in GtkFileChooserNative.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Wed, 6 Jul 2016 16:54:29 +0000 (12:54 -0400)]
Adapt to simplified file chooser portal api
OpenFiles is gone, just set the 'multiple' option instead.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sun, 26 Jun 2016 18:35:12 +0000 (14:35 -0400)]
file chooser portal: Port to new Request API
The portal API has changed, we need to adapt.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sat, 11 Jun 2016 14:23:27 +0000 (10:23 -0400)]
Use the portal when sandboxed
Use the sandbox helper api to find out whether to use
the file chooser portal.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sat, 11 Jun 2016 05:30:50 +0000 (01:30 -0400)]
portal: Sent more data along
Send the current_name, current_folder or current_file fields to
the portal.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sat, 11 Jun 2016 04:46:12 +0000 (00:46 -0400)]
portal: Send file filters to the portal
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sat, 11 Jun 2016 04:45:27 +0000 (00:45 -0400)]
Add api to serialize GtkFileFilter to a variant
This will be used to send filters over D-Bus in future commits.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Alexander Larsson [Wed, 11 Nov 2015 15:31:53 +0000 (16:31 +0100)]
Initial version of file chooser portal support
Implement GtkFileChooserNative for sandboxed applications
by talking to org.freedesktop.portal.FileChooser. Currently,
this supports OPEN and SAVE mode.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Tue, 5 Jul 2016 12:04:13 +0000 (08:04 -0400)]
about dialog: Use gtk_show_uri_on_window
This allows us to handle things slightly better in
the portal case.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Sat, 18 Jun 2016 21:59:40 +0000 (17:59 -0400)]
Add gtk_show_uri_on_window
The gtk_show_uri API doesn't let us specify a parent window. With
portals, there may be an intermediate dialog, for which it is nice
to have parent window information, to place it properly.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Matthias Clasen [Tue, 5 Jul 2016 00:29:59 +0000 (20:29 -0400)]
Add a portal helper
Instead of open-coding checks for sandboxing in multiple
places, add a helper function that caches the information.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
Owen W. Taylor [Wed, 6 Jul 2016 13:46:43 +0000 (09:46 -0400)]
Change the priority of the window-close idle to G_PRIORITY_DEFAULT
If we have an application that never goes idle (or takes a long time to
go idle), the close buttons in CSD decoration don't work properly.
While it's not clear why the usage of an idle was added in the first
place, keep on using it to avoid unexpected reentrancy problems, but
change the priority to G_PRIORITY_DEFAULT.
https://bugzilla.gnome.org/show_bug.cgi?id=768485
Matthias Clasen [Tue, 5 Jul 2016 17:16:43 +0000 (13:16 -0400)]
Add a css parser test for background-blend-mode
Matthias Clasen [Mon, 4 Jul 2016 13:58:15 +0000 (09:58 -0400)]
gtk3-demo: Simplify the blendmodes example a bit
Just put all of the template into the resource.
Olivier Fourdan [Wed, 29 Jun 2016 13:19:42 +0000 (15:19 +0200)]
wayland: remove unneeded statement
seat->pointer_info.focus is already set to NULL 2 lines above, no need to
repeat it there.
Olivier Fourdan [Wed, 29 Jun 2016 13:08:06 +0000 (15:08 +0200)]
wayland: return child only in device_query_state()
On X11, device_query_state() uses XIQueryPointer() which will return a
child window only if the pointer is within an actual child of the given
window.
Wayland backend would return the pointer->focus window independently of
the given window, but that breaks the logic in get_device_state() and
later in gdk_window_get_device_position_double() because the window is
searched based on coordinates from another window without sibling
relationship, breaking gtkmenu sub-menus further down the line.
Fix the Wayland backend to mimic X11's XIQueryPointer() to return a
child only if really a child of the given window.
That's the most sensible thing to do to fix the issue, but the API here
seems to be modeled after the X11 implementation and the description of
gdk_window_get_device_position_double() is not entirely accurate.
https://bugzilla.gnome.org/show_bug.cgi?id=768016
Piotr Drąg [Sun, 3 Jul 2016 22:41:24 +0000 (00:41 +0200)]
Updated POTFILES.skip
Matthias Clasen [Sun, 3 Jul 2016 22:29:21 +0000 (18:29 -0400)]
gtk3-demo: Make blendmodes example non-resizable
It doesn't need to.
Matthias Clasen [Sun, 3 Jul 2016 21:54:19 +0000 (17:54 -0400)]
Fix parsing of some css properties
Our property parser stops at the first match when looking for
enums, so we need to order our values so that we don't end up
with prefixes of longer names being found first.
I noticed this when the parser tried to interpret
background-blend-mode: color-burn; as "color, with junk at the end".
It also affects animation-direction, which is also fixed here.
Matthias Clasen [Sun, 3 Jul 2016 21:46:30 +0000 (17:46 -0400)]
css parser: Improve an error message
Say what property we are dealing with when we complain about the
value.
Georges Basile Stavracas Neto [Fri, 1 Jul 2016 22:39:04 +0000 (19:39 -0300)]
demo: add a demo for blend modes
After introducing the CSS blend mode enum values and including
the background-blend-mode CSS property, it is very important to
actually provide an example of the new feature.
This patch adds a new demo to gtk3-demo which shows how the
background-blend-mode CSS property works.
https://bugzilla.gnome.org/show_bug.cgi?id=768305
Georges Basile Stavracas Neto [Fri, 1 Jul 2016 13:01:43 +0000 (10:01 -0300)]
css: add documentation for background-blend-mode
After introducing the new CSS property, it is natural to
add some documentation explaining the behavior of it and
our support coverage.
https://bugzilla.gnome.org/show_bug.cgi?id=768305
Georges Basile Stavracas Neto [Fri, 1 Jul 2016 12:54:23 +0000 (09:54 -0300)]
css: add background-blend-mode support
CSS supports blend modes, in which a series of layers are
merged together according to the given operation or set of
operations.
Support for blend modes landed on Cairo, which exposes all
the commons and also the exquisites blend modes available.
Adding support for blend modes, then, is just a matter of
using the available Cairo operations.
This patch adds the background-blend-mode CSS enum property,
and adapts the background rendering code to blend the backgrounds
using the available blend modes when they're set.
https://bugzilla.gnome.org/show_bug.cgi?id=768305
Matthias Clasen [Sun, 3 Jul 2016 21:22:14 +0000 (17:22 -0400)]
Simplify the xfce session manager support
We don't have to check name owners twice; reuse the information
we already have.